CC=gcc
CFLAGS=-Wall -O2
LDFLAGS=-lpthread -DLinux -D_REENTRANT
EXEC=client
SRC= $(wildcard *.c)
OBJ= $(SRC:.c=.o)

all: $(EXEC)

$(EXEC): $(OBJ)
	$(CC) -o $@ $^ $(LDFLAGS)

%.o: %.c
	$(CC) -o $@ -c $< $(CFLAGS)

clean:
	rm *.o

veryclean: clean
	rm $(EXEC)
